Set Speed of Conveyor and Move
Function:
magician.set_converyor(index,enable,speed)
Description: Set the speed of the conveyor and control its movement
Required parameter:
- index: motor index, range: 0~1, which can also be set as characters.
- 0: magician.Stepper1
- 1: magician.Stepper2
- enable: enable the conveyor. True: enable; False: disable
- speed: speed of motor. unit: millimeters per second
- index: motor index, range: 0~1, which can also be set as characters.
Return:
- True: The command has been finished.
- False: The command has not been finished.
Example
magician.set_converyor(index=magician.Stepper1,enable=True,speed=250.0)The conveyor starts running at the speed of 250 pulses per second. The motor index is magician.Stepper1.